home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc / OpenDoc Development / Debugging Support / OpenDoc™ Source Code / DocShell / OpenDocX.r < prev    next >
Encoding:
Text File  |  1996-08-28  |  7.0 KB  |  247 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        OpenDocX.r
  3.  
  4.     Contains:    resources for the launcher (OpenDoc™)
  5.  
  6.     Owned by:    Tantek Çelik
  7.  
  8.     Copyright:    © 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     Change History (most recent first):
  11.  
  12.          <9>    22.07.1996    NP        1370914: Remove system process.
  13.          <8>     6/23/96    NP        10002: Launch time speedups.
  14.          <7>     6/19/96    NP        10002: Launch time speedups.
  15.          <6>     6/18/96    NP        10002: Launch time speedups.
  16.          <5>    .06.1996    NP        10002: Launch time fixes, system process.
  17.          <4>     4/15/96    TJ        Use Constants for RSRC Numbers
  18.          <3>     3/14/96    NP        1258295: Definition of ALRT resource to
  19.                                     display when user double-clicks app.
  20.          <2>     1/15/96    JA        1269485: Added 'ictb' for splash dlog to
  21.                                     change font to Geneva 10
  22.         <15>    10/26/95    TÇ        1296574 GM:Cannot set default memory
  23.                                     partition size.
  24.         <14>    10/25/95    TÇ        1281409 GM: OpenDoc needs an AboutBox.
  25.         <13>     9/29/95    eeh        1287262: use ShellDef.h
  26.         <12>      9/8/95    eeh        1268998: add prefs file name 'STR '
  27.                                     resource
  28.         <11>      6/8/95    RR        #1257260 Collapse base classes. #1214898
  29.                                     StdTypes.r -> ODTypes.r
  30.         <10>     5/19/95    TÇ        1155852 BB: String constants need to be
  31.                                     moved to resource for Localization
  32.          <9>      1/6/95    jpa        Get rsrcs from OpenDocX.res (not .rsrc) and
  33.                                     DocStub.rsrc. Don't copy ckid's. [1196515]
  34.          <8>    12/25/94    TÇ        1191189 Eliminate duplicate Def.h, Def.xh
  35.                                     files
  36.          <7>     12/5/94    jpa        Added resources for error handling. Include
  37.                                     new OpenDocX.rsrc (moved many rsrcs into
  38.                                     it.) [1198075]
  39.          <6>     10/7/94    TÇ        #1191470 Need both 68K and PPC document
  40.                                     stub application
  41.          <5>     8/19/94    TÇ        #1159233 Remove references to j3di, all but
  42.                                     the one mpwshell variable reference
  43.          <4>     7/25/94    TÇ        added Jens' Error Alert ALRT and DITL
  44.                                     resources for launcher error alerts
  45.          <3>     7/14/94    TÇ        use constants for resources which are
  46.                                     CHANGEd for copying into documents
  47.          <2>     7/14/94    TÇ        use full path for read statement
  48.          <1>     7/13/94    TÇ        first checked in
  49.          <0>     6/27/94    SV        SOMverted
  50.          <5>     4/18/94    TÇ        #1144379 Stationery model & generation have
  51.                                     been fixed to enable dragging & dropping of
  52.                                     stationery onto open documents.
  53.          <4>    12/17/93    eeh        added line "Change 'scsz' (0) to 'J3DI'
  54.                                     (3)" to allow docs to get GetAETE events
  55.          <3>    11/23/93    TÇ        ?
  56.          <2>    10/26/93    TÇ        Change 'CODE' (2) to 'J3DI' (2);
  57.          <1>    10/18/93    TÇ        first checked in
  58.  
  59.     To Do:
  60.     In Progress:
  61.         
  62. */
  63.  
  64. #ifndef _SHELLDEF_
  65. #include "ShellDef.h"
  66. #endif
  67.  
  68. #ifndef SOM_Module_OpenDoc_StdDefs_defined
  69. #include "StdDefs.r"
  70. #endif
  71.  
  72. // Resources from the ResEdit file.
  73. // Graphical resources like ALRT, DLOG, DITL, PICT, and icons should go here.
  74. include "OpenDocX.res" not 'ckid';
  75.  
  76. #define SYSTEMPROCESS 0
  77. #if SYSTEMPROCESS
  78. delete 'BNDL';
  79. delete 'FREF';
  80. delete 'ICN#';
  81. delete 'ics#';
  82. delete 'icl4';
  83. delete 'icl8';
  84. delete 'ics4';
  85. delete 'ics8';
  86. delete 'odtm';
  87. delete 'odbg';
  88. delete 'cfmg';
  89. #endif /* SYSTEMPROCESS */
  90.  
  91. // Resources for the document stub:
  92. include "DocStub.rsrc";
  93.  
  94.  
  95. // Resources for OpenDoc™ the application
  96.  
  97. #define SystemSevenOrBetter 1            // we want the extended types
  98. #define    SystemSevenOrLater    1            // Types.r uses this variable
  99.  
  100. #ifndef __TYPES_R__
  101. #include "Types.r"
  102. #endif
  103.  
  104. #ifndef __SYSTYPES_R__
  105. #include "SysTypes.r"
  106. #endif
  107.  
  108.  
  109. #define kApplCrtrID        128
  110. #define kWildCrtrID        129
  111.  
  112. resource 'ALRT' (kODXDoubleClickAlert
  113. #if ODDebug
  114. ,"Double-click warning"
  115. #endif
  116. ) {
  117.     {40, 40, 164, 405},
  118.     kODXDoubleClickAlert,
  119.     {    /* array: 4 elements */
  120.         /* [1] */
  121.         OK, visible, sound1,
  122.         /* [2] */
  123.         OK, visible, sound1,
  124.         /* [3] */
  125.         OK, visible, sound1,
  126.         /* [4] */
  127.         OK, visible, sound1
  128.     },
  129.     alertPositionMainScreen
  130. };
  131.  
  132. resource 'DITL' (kODXDoubleClickAlert
  133. #if ODDebug
  134. ,"Double-click warning"
  135. #endif
  136. ) {
  137.     {    /* array DITLarray: 2 elements */
  138.         /* [1] */
  139.         {91, 293, 111, 351},
  140.         Button {
  141.             enabled,
  142.             "OK"
  143.         },
  144.         /* [2] */
  145.         {11, 71, 75, 355},
  146.         StaticText {
  147.             disabled,
  148.             "Double clicking on this OpenDoc™ icon ha"
  149.             "s no effect. If you wish to create a new"
  150.             " document, please use stationery -- foun"
  151.             "d in the Stationery folder."
  152.         }
  153.     }
  154. };
  155.  
  156. // SIZE -1
  157.  
  158.  RESOURCE 'SIZE' (-1) {
  159.     reserved,
  160.     acceptSuspendResumeEvents,
  161.     reserved,
  162.     canBackground,
  163.     doesActivateOnFGSwitch,
  164.     backgroundAndForeground,
  165.     dontGetFrontClicks,
  166.     acceptChildDiedEvents,    // Need to be notified by CFM if load fails
  167.     is32BitCompatible,
  168.     isHighLevelEventAware,
  169.     localAndRemoteHLEvents,
  170.     isStationeryAware,
  171.     dontUseTextEditServices,
  172.     reserved,
  173.     reserved,
  174.     reserved,
  175.     160 * 1024,    
  176.     80 * 1024
  177. };
  178.  
  179.  
  180. resource 'STR#' (kLaunchFailedErrStrings, purgeable) {
  181.     {
  182.         /* [1] */ "of an unexpected error ^3",
  183.         /* [2] */ "of an invalid context ID",
  184.         /* [3] */ "of an invalid connection to the library “^2”",
  185.         /* [4] */ "a symbol was not found in the library “^2”",
  186.         /* [5] */ "of a missing section in the library “^2”",
  187.         /* [6] */ "the library “^2” could not be found",
  188.         /* [7] */ "the library name “^2” is already in use",
  189.         /* [8] */ "the library “^2” has an unknown data format",
  190.         /* [9] */ "the library “^2” has unresolved symbols",
  191.         /* [10] */ "of an error ^3",
  192.         /* [11] */ "there was not enough memory available to"
  193.         " load the library “^2”",
  194.         /* [12] */ "there was not enough memory available to"
  195.                     " load the library “^2”",
  196.         /* [13] */ "no more context IDs are available for library “^2”",
  197.         /* [14] */ "of an order error in the init function of"
  198.                     " library “^2”",
  199.         /* [15] */ "the library “^2” is too old",
  200.         /* [16] */ "the library “^2” is too new",
  201.         /* [17] */ "of a circularity in the load order of library “^2”",
  202.         /* [18] */ "of an error connecting to library “^2”",
  203.         /* [19] */ "of an error connecting to library “^2”",
  204.         /* [20] */ "of an error during initialization of library “^2”",
  205.         /* [21] */ "of an internal CFM inconsistency",
  206.         /* [22] */ "the library “^2” is corrupted: please replace it",
  207.         /* [23] */ "of an error in the “^2” library’s initialization routine ",
  208.         /* [24] */ "no application was found in the library “^2”s 'cfrg' resource",
  209.         /* [25] */ "the library “^2” cannot be run on this "
  210.                     "type of Macintosh; please replace it",
  211.         /* [26] */ "the library “^2” is used invalidly"
  212.     }
  213. };
  214.  
  215. resource 'STR#' (kODXLibsFldrStrID, purgeable) {
  216.     {
  217.         /* 1 */ "OpenDoc Libraries",
  218.         /* 2 */ "This file contains preference information for OpenDoc. "
  219.                 "It cannot be opened.",
  220.     }
  221. };
  222.  
  223. include "Shell.rsrc" 'STR#' (kSHLMiscErrorStringsStrID);
  224.  
  225. include "Shell.rsrc" 'STR ' (kSHLPrefsFileNameResID);
  226. include "Shell.rsrc" 'STR ' (kSHLPrefsFolderNameResID);
  227. include "Shell.rsrc" 'STR ' (kSHLSystemProcessNameResID);
  228. include "Shell.rsrc" 'STR ' (kSHLLauncherNameResID);
  229. include "Shell.rsrc" 'STR ' (kSHLOldLauncherNameResID);
  230.  
  231. data 'ictb' (kODSplashDlogID) {
  232.     $"0000 0000"    /* User item is unaffected */
  233.     $"0005 0008"    /* Change font + size of text item */
  234.     
  235.     $"0001"            /* Use application font */
  236.     $"0000"            /* Plain style [ignored] */
  237.     $"000A"            /* 10pt size */
  238.     $"0000"            /* Red component [ignored] */
  239.     $"0000"            /* Blue component [ignored] */
  240.     $"0000"            /* Green component [ignored] */
  241.     $"0000"            /* BG Red component [ignored] */
  242.     $"0000"            /* BG Blue component [ignored] */
  243.     $"0000"            /* BG Green component [ignored] */
  244.     $"0001"            /* srcOr mode [ignored] */
  245. };
  246.  
  247.